package com.diors.autocode.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 命令model
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-21
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
@XmlRootElement(name = "Command")
@XmlAccessorType(XmlAccessType.FIELD)
public class CommandModel 
{
	
	@XmlAttribute(name = "EN_NAME")
	private String enName;
	
	@XmlAttribute(name = "CN_NAME")
	private String cnName;
	
	@XmlAttribute(name = "VALUE")
	private int value;
	
	@XmlAttribute(name = "DIRECTION")
	private String direction;
	
	@XmlElement(name = "PARAM")
	private List<ParamModel> params;
	
	public String getEnName() {
		return enName;
	}

	public String getCnName() {
		return cnName;
	}

	public int getValue() {
		return value;
	}

	public String getDirection() {
		return direction;
	}

	public List<ParamModel> getParams() {
		return params;
	}

}
